from pydantic import BaseModel
from sanic import Blueprint

router = Blueprint("UserManagement",url_prefix="/user")


class User(BaseModel):
    username: str
    password: str

@router.post("/login")
async def login(user: User):
    return user
